html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

code {
  font-family: Menlo, monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font: inherit;
}

p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

.no-tap-highlight {
  -webkit-tap-highlight-color: transparent;
}

.no-tap-highlight:active {
  transition: background 1s ease;
  transition-delay: 1s;
}

.mobile-scroll {
  -webkit-overflow-scrolling: touch;
}

/* have messed with these! */

.api-doc-wrapper {
  background: rgb(45, 45, 45);
}

.api-doc {
  padding-left: 20px;
  display: block;
  box-shadow: inset 500px 0 #fff, inset 1020px 0 rgb(45, 45, 45);
  min-height: 100vh;
}
.markdown > pre {
  background: rgb(45, 45, 45);
  float: left;
  clear: right;
  white-space: pre-wrap;
  max-width: 50%;
}

/* overide language class */
.markdown > pre .language-jsx {
  white-space: pre-wrap;
}
/* all the things we render *except* headers and <pre>, add them as needed! */
.markdown > *:not(pre):not(h1):not(h2) {
  display: block;
  clear: both;
  float: left;
  width: 500px;
  padding-right: 40px;
}

.markdown:after {
  content: " ";
  display: block;
  clear: both;
  height: 80px;
}

.markdown h1,
.markdown h2 {
  padding-right: 40px;
  font-weight: bold;
}

.markdown h1 {
  font-family: Menlo, monospace;
  padding: 40px 0px 10px 0px;
  color: rgb(204, 65, 65);
  font-size: 2em;
}

.markdown h2 {
  font-family: Menlo, monospace;
  font-size: 1.5em;
  padding-top: 40px;
  position: relative;
}

.markdown h2:before {
  content: " ";
  height: 1px;
  width: 200px;
  background: linear-gradient(
    to right,
    rgba(100, 100, 100, 1) 0%,
    rgba(85, 85, 85, 0) 100%
  );
  position: absolute;
  left: 480px;
}

.markdown h2 a {
  color: rgb(45, 45, 45);
}

.markdown h2 + p {
  margin-top: 10px;
}

.markdown h1,
h2,
h3 {
  position: relative;
  clear: both;
}

@media screen and (max-width: 1270px) {
  .api-doc-wrapper {
    background: white;
  }
  .api-doc {
    box-shadow: none;
    padding: 0 20px;
  }

  .markdown > pre {
    float: none;
    padding: 20px;
    border-radius: 6px;
    overflow: auto;
    width: 100%;
    max-width: 100%;
  }

  .markdown > *:not(pre):not(h1):not(h2) {
    display: block;
    float: none;
    width: auto;
  }

  .markdown h2:before {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .markdown > *:not(pre):not(h1):not(h2) {
    /*width: auto;*/
  }
}

/* /old stuff */

.markdown p {
  margin: 1em 0;
}

.markdown h1 + h2 {
  margin-top: -40px;
  font-weight: normal;
}

.markdown th {
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  font-size: 0.8em;
  font-weight: normal;
  font-style: italic;
}

.markdown tr:nth-child(even) {
  background: #f0f0f0;
}

.markdown table td,
.markdown table th {
  padding: 2px 4px;
}

.markdown a {
  color: #d0021b;
  text-decoration: none;
}

@keyframes loading {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.loading {
  animation: loading 10s ease infinite;
  background-image: linear-gradient(125deg, #fff, #f3f3f3 41%, #ededed 0, #fff);
  background-size: 300% 300%;
}

.fade-enter {
  opacity: 0;
  z-index: 1;
}

.fade-enter.fade-enter-active {
  opacity: 1;
  transition: opacity 250ms ease-in;
}
